<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Bug_record</title>
    <link rel="stylesheet" href="./style1.css" type="text/css">
    <script src="./assets/js/myJaveScript.js" type="text/javascript"></script>
    <link rel='stylesheet' href='./assets/css/bootstrap.min.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./assets/css/animate.min.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./style.css' type='text/css' media='all'/>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%2C800%7CMontserrat%3A300italic%2C400italic%2C700italic%2C300%2C400%2C700%7CDosis%3A400%2C700&#038;ver=4.5' type='text/css' media='all'/>
<link rel='stylesheet' href='./icons/elegantline/style.css' type='text/css' media='all'/>
<link rel='stylesheet' href='./assets/css/font-awesome.min.css' type='text/css' media='all' />
<link rel='stylesheet' href='./assets/css/flexslider.css' type='text/css' media='all'/>
</head>
<body>
<header id="header">
<div id="mega-menu" class="header header2 header-sticky primary-menu icons-no default-skin zoomIn align-right">
	<nav class="navbar navbar-default redq">
	<div class="container">
		<div class="navbar-header">
			
			<a class="navbar-brand" >
			<img src="./assets/img/logo-dark.png" alt="logo">
			</a>
           
		</div>
        <div class="collapse navbar-collapse" id="navbar">
			<a class="mobile-menu-close"><i class="fa fa-close"></i></a>
			<div class="menu-top-menu-container">
				<ul id="menu-top-menu" class="nav navbar-nav nav-list">
					<li><div th:text="'您好，'+${session.name} + '!'" style="text-align: right;font-size: 20px"></div></li>
					<li><button type="button" style="background-color: #5899ce; color: white;width:100px;text-align:center;height:50px;font-size: 18px"><a th:href="@{/}">注销登录</a></button></li>
				</ul>
			</div>
		</div>
		
		<!-- /.navbar-collapse -->
	</div>
	<!-- /.container -->
	</nav>
</div>
</header>	
<section id="home" style="padding:160px 0;background-image: url(https://unsplash.it/1324/683?random=0); background-position: center; background-repeat: no-repeat;background-size: cover;background-attachment:fixed;">
	<div class="container">
		<div class="textwidget">
			<h1 class="toptitle">软  件  缺  陷  管  理<br/> 系 统 <br/><br/><i class="fa fa-star roundicon"></i>
			</h1>
        </div>
    </div>
</section>


<!--Thymeleaf 前端框架以 Html 为载体-->
<div id="total1">
<div class="main">
    <div>
<table id="table1" cellspacing="0px" align="center">
    <tr class="tableTitle" align="center">
        <td class="col1">bugId<br>(缺陷ID)</td>
                    <td id="onlyId" style="display: none"></td>
                    <td class="col2">level<br>(优先级)</td>
                    <td class="col3">description<br>(描述)</td>
                    <td class="col3">descriptionTestManager<br>(测试经理描述)</td>
                    <td class="col3">model<br>(模块)</td>
                    <td class="col4">createTime<br>(创建时间)</td>
                    <td class="col5">solveTime<br>(解决时间)</td>
                    <td class="col6">statusId<br>(状态)</td>
                    <td class="col7">typeId<br>(类型)</td>
                    <td class="col8">submitterId<br>(提交人ID)</td>
                    <td class="col9">testManagerId<br>(测试经理ID)</td>
                    <td class="col10">developmentId<br>(开发工程师ID)</td>
<!--        <td class="col12">审核</td>-->
        <td class="col11">处理</td>
    </tr>

    <tr th:each="aBug:${bugList_test_manager}" align="center">
        <td th:text="${aBug?.bugId}">NULL</td>
        <td th:text="${aBug?.level}">NULL</td>
        <td th:text="${aBug?.description}">NULL</td>
        <td th:text="${aBug?.descriptionTestManager}">NULL</td>
        <td th:each="modelObj:${modelMap}" th:if="${modelObj.value eq aBug.getModelId()}">
            <span th:value="${modelObj.value}" th:text="${modelObj.key}">NULL</span>
        </td>
        <td th:text="${#dates.format(aBug.createTime,'yyyy-MM-dd')}">NULL</td>
        <td th:text="${#dates.format(aBug.solveTime,'yyyy-MM-dd')}">NULL</td>
        <td th:each="statusObj:${statusMap}" th:if="${statusObj.value eq aBug.statusId}">
            <span th:if="${statusObj.value eq 2}" th:value="${statusObj.value}" th:text="${statusObj.key}" style="color: red"></span>
            <span th:if="${statusObj.value eq 1}" th:value="${statusObj.value}" th:text="${statusObj.key}" style="color: #0ca4ca"></span>
            <span th:if="${statusObj.value eq 3}" th:value="${statusObj.value}" th:text="${statusObj.key}"></span>
            <span th:if="${statusObj.value eq 4}" th:value="${statusObj.value}" th:text="${statusObj.key}"></span>
        </td>
        <td th:each="typeObj:${typeMap}" th:if="${typeObj.value eq aBug.getTypeId()}">
            <span th:value="${typeObj.value}" th:text="${typeObj.key}"></span>
        </td>
        <td th:text="${aBug?.submitterId}">NULL</td>
        <td th:text="${aBug?.testManagerId}">NULL</td>
        <td th:text="${aBug?.developmentId}">NULL</td>
<!--        <td>-->
<!--            <div th:if="${aBug.statusId eq 1}">-->
<!--                <a id=”checked“ style="color:royalblue" th:href="@{/checked(bugId=${aBug.bugId},testManagerId=${session.id})}" onclick="javascript:return window.confirm('确认审核通过吗？')">审核通过</a><br>-->
<!--                <a id=”checkedFalse“ style="color:royalblue" th:href="@{/checkedFalse(bugId=${aBug.bugId},testManagerId=${session.id})}" onclick="javascript:return window.confirm('确认审核不通过吗？')">审核不通过</a>-->
<!--            </div>-->
<!--            <div th:if="${aBug.statusId eq 2}">-->
<!--                <p th:text="审核未通过" style="color:red"></p>-->
<!--            </div>-->
<!--            <div th:if="${aBug.statusId eq 3}">-->
<!--                <p th:text="审核已通过"></p>-->
<!--            </div>-->
<!--            <div th:if="${aBug.statusId eq 4}">-->
<!--                <p th:text="已解决"></p>-->
<!--            </div>-->
<!--        </td>-->
        <td><a style="color:royalblue" th:href="@{/showABug(bugId=${aBug.bugId})}">处理</a></td>
    </tr>
</table>
<div id="lowerLbl" align="center">
                <p>共</p>
                <p th:text="${bugList_test_manager.size()}"></p>
                <p>条</p>
                <select id="sel" onclick="pagination()">
                    <option id="opt0" value="10" selected="selected">10条/页</option>
                    <option id="opt1" value="20">20条/页</option>
                    <option id="opt2" value="50">50条/页</option>
                </select>
                &nbsp;
                <button onclick="last()"><</button>
                <button id="pno" style="background-color: #5899ce; color: white">1</button>
                <button onclick="next()">></button>
                &nbsp;
                <p>前往</p>
                <input type="text" id="gopg" onclick="gopage()" />
                <p>页</p>
            </div>
        </div>
    </div>

</div>
<footer id="footer" class="footer2">
	<div class="copyright">
		<div class="container">
			<div class="row">
				<div class="col-md-6">
					<small>
					&copy; <a th:href="@{/}">
							  Y.W.J &nbsp L.H.Y &nbsp L.Z.L &nbsp L.Q.L &nbsp S.S.K
					  </a>
					</small>
				</div>
				<div class="col-md-6 text-right">
					<div class="footer-menu">
						<ul id="menu-footer-links" class="menu">
							<li><a href="#"><i class="fa fa-facebook"></i> Like us on Facebook</a></li>
							<li><a href="#"><i class="fa fa-twitter"></i> Follow us on Twitter</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</footer>
</body>
</html>